package com.lay.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import javax.persistence.Table;
import java.io.Serializable;

/**
 * <p>
 * 用户账号信息表

包括用户账号和管理员账号，员工账号
 * </p>
 *
 * @author Lay
 * @since 2022-06-09
 */
public class UserNumber implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 账号编号，主键，唯一
     */
    @TableId(value = "un_id", type = IdType.AUTO)
    private Integer unId;

    /**
     * 账号名称（唯一）
     */
    private String username;

    /**
     * 账号密码
     */
    private String password;

    /**
     * 找回密码
     */
    private String unPwdsalt;

    /**
     * 账号昵称
     */
    private String unNickname;

    /**
     * 角色编号，外键
     */
    private Integer rId;

    /**
     * 账号状态（0冻结，1正常）
     */
    private Integer unState;

    /**
     * 对应用户，外键
     */
    private Integer uId;


    public Integer getUnId() {
        return unId;
    }

    public void setUnId(Integer unId) {
        this.unId = unId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUnPwdsalt() {
        return unPwdsalt;
    }

    public void setUnPwdsalt(String unPwdsalt) {
        this.unPwdsalt = unPwdsalt;
    }

    public String getUnNickname() {
        return unNickname;
    }

    public void setUnNickname(String unNickname) {
        this.unNickname = unNickname;
    }

    public Integer getrId() {
        return rId;
    }

    public void setrId(Integer rId) {
        this.rId = rId;
    }

    public Integer getUnState() {
        return unState;
    }

    public void setUnState(Integer unState) {
        this.unState = unState;
    }

    public Integer getuId() {
        return uId;
    }

    public void setuId(Integer uId) {
        this.uId = uId;
    }

    @Override
    public String toString() {
        return "UserNumber{" +
        "unId=" + unId +
        ", username=" + username +
        ", password=" + password +
        ", unPwdsalt=" + unPwdsalt +
        ", unNickname=" + unNickname +
        ", rId=" + rId +
        ", unState=" + unState +
        ", uId=" + uId +
        "}";
    }
}
